﻿using PinCity.Models.Accounts;

namespace PinCity.Models.Base
{
    /// <summary>
    /// Base class for content entries (news, markers, comments, etc.). 
    /// </summary>
    abstract public class Entry : Entity
    {
        /// <summary>
        /// Gets or sets header of the item.
        /// </summary>
        public virtual string Caption { get; set; }

        /// <summary>
        /// Gets or sets main content of the item.
        /// </summary>
        public virtual string Text { get; set; }

        /// <summary>
        /// Gets or sets a rating of the item. Can be negative.
        /// </summary>
        public virtual int Rating { get; set; }

        /// <summary>
        /// Gets or sets a uset, that created an entry.
        /// </summary>
        public virtual User Author { get; set; }
    }
}
